﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JobSearchByIndustry.aspx.cs"
    MasterPageFile="~/Admin.master" Inherits="JobSearchByIndustry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .rptrLink
        {
            color: #666666;
            display: block;
            font-family: Arial,Helvetica,sans-serif;
            text-decoration: none;
            line-height: 25px;
        }
        .Heading
        {
            background-color: #335566;
            font-size: medium;
            color: #FFFFFF;
            font-family: MS Sans Serif;
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="cphMainBody" runat="server">
    <table width="100%">
        <tr>
            <td valign="bottom" class="leftheading" colspan="2" align="left">
                <img src="images/headingbullet.gif" width="14" height="14">
                SERACH JOB BY INDUSTRY
            </td>
        </tr>
        <tr>
            <td class="leftsectionunderline" colspan="2">
                <img src="images/spacer.gif" width="1" height="1">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" colspan="2" height="6">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" style="width: 25%;" align="right">
                Industry Name :
            </td>
            <td class="tdstyle" style="width: 75%;">
                <asp:TextBox class="txt" ID="txtIndustry" runat="server">
                </asp:TextBox>
                <asp:Label CssClass="lbl" ID="lblMsg" runat="Server" ForeColor="Red" Text="Enter Industry by comma separated ( , )  Ex: wipro,infosys ">
                </asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" style="width: 25%;" align="right">
                Page Size :
            </td>
            <td class="tdstyle" style="width: 75%;">
                <asp:DropDownList CssClass="ddl" ID="ddlPageSize" runat="server">
                    <asp:ListItem Text="25" Value="25"></asp:ListItem>
                    <asp:ListItem Text="50" Value="50"></asp:ListItem>
                    <asp:ListItem Text="100" Value="20"></asp:ListItem>
                    <asp:ListItem Text="200" Value="20"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
                <asp:Button class="CSSButton" ID="btnSeachBySkills" runat="server" Text="Search"
                    OnClick="btnSeachBySkills_Click" />
                <asp:Button class="CSSButton" ID="btnClearSearch" Style="margin-left: 10px;" runat="server"
                    Text="Clear Search" OnClick="btnClearSearch_Click" />
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
                <asp:Label CssClass="lbl" ID="lblErrMsg" runat="Server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" colspan="2">
                <br />
                <table width="100%">
                    <tr>
                        <td valign="bottom" class="leftheading" colspan="2" align="left">
                            <img src="images/headingbullet.gif" width="14" height="14">
                            BROWSE BY INDUSTRY
                        </td>
                    </tr>
                    <tr>
                        <td class="leftsectionunderline" colspan="2">
                            <img src="images/spacer.gif" width="1" height="1">
                        </td>
                    </tr>
                </table>
                <center>
                    <asp:DataList RepeatColumns="2" RepeatLayout="Flow" Width="100%" ID="rptSkills" runat="server"
                        OnItemCommand="rptSkills_ItemCommand" BackColor="White" CellPadding="4" GridLines="Horizontal">
                        <FooterStyle BackColor="White" ForeColor="#333333" />
                        <ItemTemplate>
                            <asp:LinkButton CssClass="rptrLink" Width="45%" ID="lnkSkills" CommandArgument='<%# Eval("EMPLOYER_NAME") %>'
                                CommandName="SkillsSearch" runat="server" Text='<%# Eval("EMPLOYER_NAME") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle BackColor="White" ForeColor="#333333" />
                        <SelectedItemStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                    </asp:DataList>
                </center>
                <br />
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" colspan="2">
                <asp:GridView ID="grdSeachByIndustry" runat="server" AutoGenerateColumns="false" CssClass="griddiv"
                    CellPadding="3" ForeColor="Black" GridLines="Vertical" OnRowDataBound="grdSeachByIndustry_RowDataBound"
                    OnRowCommand="grdSeachByIndustry_RowCommand">
                    <Columns>
                        <asp:TemplateField ItemStyle-CssClass="griditem"  HeaderText="Job Title" ItemStyle-Width="20%">
                            <ItemTemplate>
                               <%# Eval("JOB_TITLE") %>(<%# Eval("EXPERIENCE_REQUIRED") %>)
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="COMPANY_NAME" HeaderText="Company Name" ItemStyle-Width="20%" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_DESCRIPTION" HeaderText="Job Description" ItemStyle-Width="45%" />
                        <asp:TemplateField ItemStyle-CssClass="griditem"  HeaderText="Apply Job" ItemStyle-Width="15%">
                            <ItemTemplate>
                                <center>
                                    <asp:HiddenField ID="hfJobPostId" runat="Server" Value='<%# Eval("JOB_POST_ID") %>'>
                                    </asp:HiddenField>
                                    <asp:Label CssClass="lbl" ID="lblAlreadyApplied" runat="server" Text="Already Applied"
                                        ForeColor="Red" Visible="false"></asp:Label>
                                    <asp:LinkButton ID="lnkApplyNow" runat="Server" Text="Apply Now" CommandName="ApplyJob" CssClass="addnewlink"
                                        CommandArgument='<%# Eval("JOB_POST_ID") %>'></asp:LinkButton>
                                </center>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                    <FooterStyle BackColor="#CCCCCC" />
                    <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True"  />
                    <HeaderStyle CssClass="greedhead" Font-Bold="True" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
